﻿@model IEnumerable<Bottega.Models.SiteMap>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            RootId
        </th>
        <th>
            Url
        </th>
        <th>
            Title
        </th>
        <th>
            Description
        </th>
        <th>
            Keywords
        </th>
        <th>
            OrderId
        </th>
        <th>
            Controller
        </th>
        <th>
            Action
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.RootId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Url)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Keywords)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OrderId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Controller)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Action)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.SiteMapId }) |
            @Html.ActionLink("Details", "Details", new { id=item.SiteMapId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.SiteMapId })
        </td>
    </tr>
}

</table>
